home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / objc / StreamTable.h < prev    next >
Text File  |  1993-04-13  |  1KB  |  53 lines

  1. /*
  2.     StreamTable.h
  3.     Copyright 1989 NeXT, Inc.
  4.     
  5.     DEFINED AS:    A common class
  6.     HEADER FILES:    objc/StreamTable.h
  7.  
  8. */
  9.  
  10. #ifndef _OBJC_STREAMTABLE_H_
  11. #define _OBJC_STREAMTABLE_H_
  12.  
  13. #import <objc/HashTable.h>
  14.  
  15. @interface StreamTable: HashTable 
  16.     
  17. /* Creating, freeing, and initializing */
  18.  
  19. - free;    
  20. - freeObjects;    
  21. - init;
  22. - initKeyDesc:(const char *)aKeyDesc;
  23.  
  24. /* Manipulating */
  25.  
  26. - valueForStreamKey:(const void *)aKey;
  27. - insertStreamKey:(const void *)aKey value:aValue;
  28. - removeStreamKey:(const void *)aKey;
  29.  
  30. /* Iterating */
  31.  
  32. - (NXHashState)initStreamState;
  33. - (BOOL)nextStreamState:(NXHashState *)aState key:(const void **)aKey 
  34.     value:(id *)aValue;
  35.  
  36. /* Archiving */
  37.  
  38. - write:(NXTypedStream *)stream;
  39. - read:(NXTypedStream *)stream;
  40.  
  41. /*
  42.  * The following new... methods are now obsolete.  They remain in this 
  43.  * interface file for backward compatibility only.  Use Object's alloc method 
  44.  * and the init... methods defined in this class instead.
  45.  */
  46.  
  47. + new;
  48. + newKeyDesc:(const char *)aKeyDesc;
  49.  
  50. @end
  51.  
  52. #endif /* _OBJC_STREAMTABLE_H_ */
  53.